home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000018_anthonypieper@cs.com_Wed Nov 26 10:13:08 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
1KB
Path: newsmaster.cc.columbia.edu!panix!news.maxwell.syr.edu!postnews1.google.com!not-for-mail
From: anthonypieper@cs.com (newexpectuser)
Newsgroups: comp.protocols.kermit.misc
Subject: Quick Question on switch statement and :1, :2
Date: 26 Nov 2003 05:16:06 -0800
Organization: http://groups.google.com
Lines: 13
Message-ID: <f0bb0f39.0311260516.356db920@posting.google.com>
NNTP-Posting-Host: 209.251.39.194
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1069852566 17127 127.0.0.1 (26 Nov 2003 13:16:06 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 26 Nov 2003 13:16:06 +0000 (UTC)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14694
I am using the following and was wondering if the :1 and :2 are just
labels to clarify code. I am guessing that the "if < \v(input).." says
if the return code of the minput statement is a 1, to exit with a
return code of 1, otherwise check continue ?
If that is true, then I think the :1 and :2 are nothing more than
labels and have no affect on the script itself ?
minput 30 "password:"
if < \v(input) 1 exit 1
switch \v(minput) {
:1 echo
:2 echo